const resolve = dir => require('path').join(__dirname, dir);

module.exports = {
    resolve: {
        alias: {
            '@': resolve('src'),
            images: resolve('src/static/images'),
            libraries: resolve('src/libraries'),
            errors: resolve('src/lib/errors'),
            utils: resolve('src/lib/utils'),
            configs: resolve('src/static/configs'),
            styles: resolve('src/styles'),
            static: resolve('src/static'),
            svg: resolve('src/static/svg'),
            components: resolve('src/components'),
            apis: resolve('src/lib/apis')
        }
    }
};
